# Celery email sending
CELERY_BROKER_URL = 'amqp://localhost'
INSTALLED_APPS += (
'djcelery_email',
'django_celery_results'
)
CELERY_EMAIL_TASK_CONFIG = {
'name': 'djcelery_email_send',
'ignore_result': False,
}
CELERY_RESULT_BACKEND = 'django-db'
EMAIL_BACKEND = 'djcelery_email.backends.CeleryEmailBackend'
import os
from celery import Celery
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mysite.settings')
app = Celery('mysite')
app.config_from_object('django.conf:settings', namespace='CELERY')
app.autodiscover_tasks()